﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CalculadoraEficiente
{
    public class Resta : Operacion
    {
        public double Minuendo { get; set; }
        public double Sustraendo { get; set; }

        public Resta(double minuendo, double sustraendo)
        {
            this.Minuendo = minuendo;
            this.Sustraendo = sustraendo;
        }

        public override double Operar()
        {
            return (this.Minuendo - this.Sustraendo);
        }
    }
}
